<!-- 模态框（Modal） -->
<div class="modal fade" id="add" tabindex="-1" role="dialog"
     aria-labelledby="addModalLabel" aria-hidden="true">
    <div class="modal-dialog">
        <div class="modal-content">
            <div class="modal-header">
                <button type="button" class="close"
                        data-dismiss="modal" aria-hidden="true">
                    &times;
                </button>
                <h4 class="modal-title" id="addModalLabel">
                    添加用户信息
                </h4>
            </div>
            <div class="modal-body">
                <form role="form" action="__URL__/insert" method="post" id="userAddForm">
                    <div class="box-body">
                        <div class="form-group">
                            <label>用户名：</label>
                            <input type="text" class="form-control" size="30" maxlength="20" name="account" placeholder="Enter ..."/>

                        </div>
                        <div class="form-group">
                            <label>昵称：</label>
                            <input type="text" class="form-control required " name="nickname">
                        </div>
                        <div class="form-group">
                            <label for="exampleInputPassword1">Password</label>
                            <input type="password"  name="password"  class="form-control required " id="exampleInputPassword1" placeholder="Password">
                        </div>

                        <div class="form-group">
                            <label for="email-form-group">Email address</label>
                            <!--<input type="email" name="email"  class="form-control" id="exampleInputEmail1" placeholder="Enter email">-->
                            <div class="col-sm-12 email-form-group add-email" id="email-form-group">
                                    <!--<div class="email-item">-->
                                        <!--<div class="input-group col-md-10 pull-left">-->
                                            <!--<input type="text" class="form-control" name="email[]" value="{$emailsufix[0]}"  aria-label="...">-->
                                        <!--</div>-->
                                        <!--<div class="input-group-btn" style="width: 130px !important;">-->
                                            <!--<select name="mailbox_suffix[]" class="form-control mail-select  mail-sufix" >-->
                                                <!--{$emailSuffix | renderOptions = $v['type_id'] == ''?'':$v['type_id']}-->
                                            <!--</select>-->
                                        <!--</div>-->
                                        <!--<div class="input-group col-md-2 col-sm-2 pull-left">-->
                                            <!--<div class="input-group-btn ">-->
                                                <!--<select name="is_main[]" class="form-control mail-select mail-default" style="width: 100px !important;">-->
                                                    <!--<option value="0" <?php if($v['is_main']==0): ?>selected<?php endif; ?>>次邮箱</option>-->
                                                    <!--<option value="1" <?php if($v['is_main']): ?>selected<?php endif; ?>>主邮箱</option>-->
                                                <!--</select>-->
                                            <!--</div>-->
                                            <!--<a href="javascript:;"  class="btn button btn-default email-remove"><i class="fa fa-remove"></i></a>-->
                                        <!--</div>-->
                                    <!--</div>-->
                            </div>
                            <div class="col-md-12 text-right "><a href="javascript:;"  class="btn button btn-primary  email-add">{$Think.lang.Add}</a> </div>
                        </div>

                        <div class="form-group">
                            <label>状态：</label>
                            <SELECT name="status">
                                <option value="1">启用</option>
                                <option value="0">禁用</option>
                            </SELECT>
                        </div>
                        <div class="form-group">
                            <label>备注：</label>
                            <textarea name="remark" rows="3" cols="57" class="form-control"></textarea>
                        </div>

                        <div class="form-group">
                            <div class="col-lg-9 col-lg-offset-3">
                                <div id="errors"></div>
                            </div>
                        </div>
                    </div><!-- /.box-body -->

                    <div class="box-footer">
                        <input type="hidden" name="ajax" value="1">
                        <button type="submit" class="btn btn-primary"  >Submit</button>
                    </div>
                </form>
            </div>
        </div><!-- /.modal-content -->
    </div><!-- /.modal -->
</div>
<block name="script">
<script type="text/javascript">
   // <!--
    function checkName(){
        ThinkAjax.send('__URL__/checkAccount/','ajax=1&account='+$F('account'));
    }

    //-->
</script>
</block>
